package com.utils

class JSUtils {

    companion object {

        fun load(vararg path: String) {
////            val path = PackPath("E:\\WorkSpace\\Idea\\TypeScript\\KickersX\\html-template\\index.js")
//            JavetEnginePool<V8Runtime>().use { enginePool ->
//                enginePool.engine.use { engine ->
//                    {
////                engine.config.jsRuntimeType = JSRuntimeType.V8
//                        // Get a V8 runtime from the engine.
//                        val v8Runtime = engine.v8Runtime
//                        // Create a Javet console interceptor.
//                        // V8 console log is redirected to JVM console log.
//                        v8Runtime.getExecutor(path).executeVoid()
////                println(v8Runtime.getExecutor("arr").executeObject())
//                        // close() is not necessary because the Javet engine pool handles that.
//                        v8Runtime.lowMemoryNotification()
//                    }
//                }
//
//
//            }


        }


    }

}